package com.flyco.modules.sms.service;

import com.flyco.modules.sms.entity.SmsBargainProduct;
import com.flyco.modules.sms.entity.SmsBargainRoom;
import com.flyco.modules.sms.entity.SmsBargainFollow;
import com.flyco.modules.sms.entity.SmsBargain;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 砍价
 * @Author: flyco
 * @Date:   2020-05-18
 * @Version: V1.0
 */
public interface ISmsBargainService extends IService<SmsBargain> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(SmsBargain smsBargain, List<SmsBargainProduct> smsBargainProductList, List<SmsBargainRoom> smsBargainRoomList, List<SmsBargainFollow> smsBargainFollowList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(SmsBargain smsBargain, List<SmsBargainProduct> smsBargainProductList, List<SmsBargainRoom> smsBargainRoomList, List<SmsBargainFollow> smsBargainFollowList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(Long id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);
	
}
